<?php
declare(strict_types=1);

namespace Service\CommodityCustomInfoService;

use App\Model\CommodityModel\SupplierCommodityCustomInfo;
use Service\BaseService;

class SupplierCommodityCustomInfoService extends BaseService
{
    /**
     * 获取消费要用的订单申报数据
     * @param $SupplierSkuIds
     * @return array
     */
    public function getOldConsumerCustomInfos($SupplierSkuIds)
    {
        return SupplierCommodityCustomInfo::instance()
            ->whereIn('SupplierCommodityID',$SupplierSkuIds)
            ->select([
                'ID',
                'Country',
                'Currency',
                'MeasurementUnit',
                'DeclareBarCode',
                'Specifications',
                'DeclareSKUCode',
                'DeclareCommodityName',
                'SupplierCommodityID'
            ])->get()->toArray();

    }

}